-- GENERATED SPELL FOR [Son of Corok] --


function spell0_19824(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(12612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19824', 649, 1)
end

function Sorts_19824(pUnit, Event)
local choix_sorts_19824 = math.random(0, 0)
if choix_sorts_19824 == 0 then
pUnit:RegisterEvent('spell0_19824', 1, 1)
end
end

function mob19824_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19824', math.random(1500, 3000), 1)
end

function mob19824_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19824_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19824_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19824, 1, 'mob19824_Action')
RegisterUnitEvent(19824, 2, 'mob19824_Leave')
RegisterUnitEvent(19824, 3, 'mob19824_Kill')
RegisterUnitEvent(19824, 4, 'mob19824_Die')
